﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace LearningBubbles
{
    public class Hand
    {
        private bool handInteracts;

        //private bool handHasElement;

        //public bool HandHasElement
        //{
        //    get { return HandHasElement; }
        //    set { HandHasElement = value; }
        //}

        public bool HandInteracts
        {
            get { return handInteracts; }
            set { handInteracts = value; }
        }

        public Hand() {
            //this.handInteracts = false;
            //this.handHasElement = false;
        }
    }

    class Player
    {
        private bool lHandHasElement;

        public bool LHandHasElement
        {
            get { return lHandHasElement; }
            set { lHandHasElement = value; }
        }
        private bool rHandHasElement;

        public bool RHandHasElement
        {
            get { return rHandHasElement; }
            set { rHandHasElement = value; }
        }
        
        private Hand[] hands;

        public Hand[] Hands
        {
            get { return hands; }
            set { hands = value; }
        }
                
        private string playerName;

        public string PlayerName
        {
            get { return playerName; }
            set { playerName = value; }
        }

        private List<Element> collectedElements;

        public List<Element> CollectedElements
        {
            get { return collectedElements; }
            set { collectedElements = value; }
        }

        private int playerId;

        public int PlayerId
        {
            get { return playerId; }
            set { playerId = value; }
        }

        public Player(int playerId, string playerName)
        {
            this.playerId = playerId;
            collectedElements = new List<Element>();
            this.playerName = playerName;
            hands = new Hand[2];
            hands[0] = new Hand();
            hands[1] = new Hand();
        }
    }
}
